package cn.envish.itemuselimit.manager;

import cn.envish.itemuselimit.ItemUseLimit;

public class VersionManager {
	
	private boolean hasOffHand;
	
	public VersionManager(ItemUseLimit instance){
        String version = instance.getServer().getBukkitVersion();
        version = version.substring(0, version.indexOf("-"));
        Integer v = Integer.valueOf(version.split("\\.")[1]);
        if (v >= 9) {
            hasOffHand = true;
        } else {
            hasOffHand = false;
        }
	}
	
	public boolean hasOffHand(){
		return hasOffHand;
	}

}
